package com.isp.common.model.exception;


import com.isp.common.model.ResultCode;

/**
 * 业务异常
 *
 * @author Linsy
 * @version 1.0
 * @created 2024/6/20 2:06 PM
 */
public class BusinessException extends RuntimeException {
    private static final long serialVersionUID = -2765556925471786486L;
    private Integer code;

    public BusinessException(ResultCode resultCode) {
        super(resultCode.getMsg());
        this.code = resultCode.getRet();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
